package com.kaishengit.util;

public class Stringutil {
	public boolean isNotEmpty(String s){
		boolean b = false;
		if(s!=null&&!s.equals("")){
			b = true;
		}
		return b;
	}
	public float getFloat(float a){
		float f = a*1000;
	String s = Float.toString(f);
		
		
		String news = s.substring(0, s.lastIndexOf("."));
		
		float newf = Float.parseFloat(news);
		float newff = newf/1000;
		return newff;
			
		
	}
}
